<template>
  {{ status }}
  <a-input v-model:value="status" />
  <!-- <a-button @click="handleChange">在子组件中增加</a-button> -->
</template>

<script setup>
import { defineProps, defineEmits, computed, defineModel } from 'vue'

const status = defineModel('status')
// const props = defineProps({ status: { type: Number, required: true } })
// const emit = defineEmits(['update:status'])

// const handleChange = () => {
//   emit('update:status', props.status + 1)
// }

// const newStatus = computed({
//   get() {
//     return props.status
//   },
//   set(value) {
//     emit('update:status', value)
//   }
// })
</script>

<style></style>
